package CreationalPatterns.Builder.house;

/*
指挥官
 */
public class HouseDirector {

  HouseBuilder houseBuilder = null;

  public HouseDirector(HouseBuilder houseBuilder) {
    this.houseBuilder = houseBuilder;
  }

  public void setHouseBuilder(HouseBuilder houseBuilder) {
    this.houseBuilder = houseBuilder;
  }

  public House constructHouseBuilder(){
    houseBuilder.BuildBaise();
    houseBuilder.BuildWall();
    houseBuilder.BuildRoofed();
    return houseBuilder.BuildHouse();
  }
}
